﻿using Rhino;
using Rhino.Commands;
using System;
using YangTools.Realization;

namespace YangTools
{
    public class BlockUniqueUndoCommand : Command
    {
        static BlockUniqueUndoCommand _instance;
        public BlockUniqueUndoCommand()
        {
            _instance = this;
        }

        public static BlockUniqueUndoCommand Instance
        {
            get { return _instance; }
        }

        public override string EnglishName
        {
            get { return "BlockUniqueUndo"; }
        }

        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            BlockEdit bu = new BlockEdit();
            bu.UndoUnique();
            return Result.Success;
        }
    }
}